<!-- 关注首页 -->
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="../common/taglib.jsp"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>关注首页</title>
<meta name="viewport"
	content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<jsp:include page="../common/base.jsp"></jsp:include>
<script src="${basePath}/resource/js/common/base.js"></script>
<link href="${basePath}/resource/css/weathers.css" rel="stylesheet">
<script type="text/javascript" src="${basePath}/resource/js/common/messages_${sessionScope.lang}.js"></script>
<style type="text/css">
.module-topbar, .wrapper-popup .sub-header {
    height: 44px;
    color: #3b3b3b;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 19;
    text-align: center;
    -wekbit-box-shadow: 0 1px 2px #cfcfcf;
    box-shadow: 0 1px 2px #cfcfcf;
    background: #f9f9f9;
}
.module-topbar a, .wrapper-popup .sub-header a {
    height: 44px;
    min-width: 30px;
    padding: 0 20px;
    font-size: 1.0625rem;
    line-height: 44px;
}
.fl {
    float: left;
}
.module-topbar span, .wrapper-popup .sub-header span {
    width: 100%;
    left: 0;
    position: absolute;
    font-size: 18px;
    line-height: 44px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: -1;
}
.module-topbar a i, .wrapper-popup .sub-header a i {
    color: #1bbffd;
}
.module-topbar i, .wrapper-popup .sub-header i {
    font-size: 25px;
}
.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: 0.2px;
    -moz-osx-font-smoothing: grayscale;
}

</style>
</head>
<body style="font-family: 微软雅黑;">
<body>
	<input type="hidden" value="${userTonken}" id="userTonken">
	<input type="hidden" value="${lang}" id="lang"> 
	<div class="containers">
		<header class="module-topbar">
				<a class="fl" id="toIndex">
				<i class="fa fa-angle-left" style="line-height: 44px; color: #666;"></i>
			</a>
	        <span><spring:message code="keywordSet"/></span>
	      <!--   <a class="fr" href="/ShareNew/write.do?userToken=4378954029" id="writeShare"></a> -->
	    </header>
	</div>
	
	<div class="keywordSet">
	<c:choose>
		 <c:when test="${kws != null}">
			<c:forEach  items="${kws.data}" var="dList" varStatus="status">
				<div class="setInfo" style="display: block;">
					<div class="title">
						<span>
							<spring:message code="keyword"/>:
						</span>
						<div>
							<input type="text" id="kwsgroupName" placeholder="<spring:message code="keywordName"/>" value="${dList.kwsgroupName }"/>
						</div>
						<span class="del_w"><i class="fa fa-remove"></i></span>
					</div>
					<div class="keywords">
						<ul>
						<c:forEach items="${dList.kwsmodel1Front}" var="keyword1" varStatus="status">
							<li>
								<div>
									<input type="text" name="kwsmodel1" placeholder="<spring:message code="enterKeyword"/>" value="${keyword1}" />
								</div>
							</li>
						</c:forEach>
						</ul>
					</div>
					<div class="radio_w">
						<ul class="answer">
						    <c:if test="${dList.kwsrelationship == '0' }">
						    	<li><input id="answer-0${dList.kwsgroupid}" type="radio" name="${dList.kwsgroupid}" hidden="hidden" value="1"><label for="answer-0${dList.kwsgroupid}"><spring:message code="and"/></label></li>
								<li><input id="answer-1${dList.kwsgroupid}" type="radio" name="${dList.kwsgroupid}" hidden="hidden" value="0" checked="checked"><label for="answer-1${dList.kwsgroupid}"><spring:message code="or"/></label></li>
						    </c:if>
						    <c:if test="${dList.kwsrelationship == '1' }">
						    	<li><input id="answer-0${dList.kwsgroupid}" type="radio" name="${dList.kwsgroupid}" hidden="hidden" value="1" checked="checked"><label for="answer-0${dList.kwsgroupid}"><spring:message code="and"/></label></li>
								<li><input id="answer-1${dList.kwsgroupid}" type="radio" name="${dList.kwsgroupid}" hidden="hidden" value="0"><label for="answer-1${dList.kwsgroupid}"><spring:message code="or"/></label></li>
						    </c:if>
						</ul>
					</div>
					<div class="keywords">
						<ul>
						<c:forEach items="${dList.kwsmodel2Front}" var="keyword2" varStatus="status">
							<li>
								<div>
									<input type="text" name="kwsmodel2" placeholder="<spring:message code="enterKeyword"/>" value="${keyword2}" />
								</div>
							</li>
						</c:forEach>
						</ul>
					</div>
				</div>	
			</c:forEach>
		  </c:when>
		    <c:otherwise>
		    	<div class="setInfo" style="display: block;">
					<div class="title">
						<span>
							<spring:message code="keyword"/>:
						</span>
						<div>
							<input type="text" id="kwsgroupName" placeholder="<spring:message code="keywordName"/>"/>
						</div>
						<span class="del_w"><i class="fa fa-remove"></i></span>
					</div>
					<div class="keywords">
						<ul>
						<c:forEach begin="1" end="6" step="1">
							<li>
								<div>
									<input type="text" name="kwsmodel1" placeholder="<spring:message code="enterKeyword"/>" />
								</div>
							</li>
						</c:forEach>
						</ul>
					</div>
					<div class="radio_w">
						<ul class="answer">
							<li><input id="answer-0" type="radio" name="answer" hidden="hidden" checked="checked" value="1"><label for="answer-0"><spring:message code="and"/></label></li>
							<li><input id="answer-1" type="radio" name="answer" hidden="hidden" value="0"><label for="answer-1"><spring:message code="or"/></label></li>
						</ul>
					</div>
					<div class="keywords">
						<ul>
						<c:forEach begin="1" end="6" step="1">
							<li>
								<div>
									<input type="text" name="kwsmodel2" placeholder="<spring:message code="enterKeyword"/>" />
								</div>
							</li>
						</c:forEach>
						</ul>
					</div>
				</div>
		    </c:otherwise>
		 </c:choose>
	
		<div class="addKeyWord">
			<i class="fa fa-plus"></i> <span><spring:message code="addKeywordSettings"/></span>
		</div>

	</div>
	
	<div class="buttons_w">
		<span id="subKeyWord"><i class="fa fa-cloud-upload"></i><spring:message code="submit"/></span>
	</div>
	
	
	<script type="text/javascript" src="${basePath}/resource/js/sentiment.js"></script>
</body>

<script type="text/javascript">
$(function() {
	vrv.sentiment.setUp.init();
});
</script>
</html>
